package com.keter.domains;

import org.springframework.security.oauth2.provider.client.BaseClientDetails;

/**
 * 客户端认证和用户认证复用同一个模型
 * 增加ID字段
 * Created by gulx@neusoft.com on 2020/6/8.
 */
public class MyClientUserDetails extends BaseClientDetails {

    @org.codehaus.jackson.annotate.JsonProperty("id")
    @com.fasterxml.jackson.annotation.JsonProperty("id")
    private String id;

    public MyClientUserDetails(String id, String clientId, String resourceIds,
                               String scopes, String grantTypes, String authorities, String redirectUris) {
        super(clientId, resourceIds, scopes, grantTypes, authorities, redirectUris);
        this.setId(id);
    }

    @org.codehaus.jackson.annotate.JsonIgnore
    @com.fasterxml.jackson.annotation.JsonIgnore
    public String getId() {
        return id;
    }
    public void setId(String id) {
        this.id = id;
    }
}
